import { createBrowserRouter } from "react-router-dom"
import Layout from "@/pages/Layout"
import NewBill from "@/pages/NewBill"
import MonthBill from "@/pages/MonthBill"
import YearBill from "@/pages/YearBill"
const router = createBrowserRouter([
  {
    path:'/',
    element:<Layout/>,
    children:[
      {
        index:true,
        path:'month',
        element:<MonthBill/>
      },
      {
        path:'year',
        element:<YearBill/>
      }
    ]
  },
  {
    path:'/new',
    element:<NewBill/>
  }
])
export default router